<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
</head>
<body>
<div style="float: right">
    <h2>共有数据：{$count}条</h2>
</div>
<table class="table">
    <thead>
    <tr>
        <th scope="col">#</th>
        <th scope="col">类型名称</th>
        <th scope="col">商品名称</th>
        <th scope="col">品牌名称</th>
        <th scope="col">价格下限</th>
        <th scope="col">价格上限</th>
    </tr>
    </thead>
    <tbody>
    {volist name="data" id="v"}
    <tr>
        <th scope="row">{$v.id}</th>
        {volist name="type" id="v1"}
        {if condition="$v.type_id == $v1.id "}
        <td>{$v1.tname}</td>
        {/if}
        {/volist}
        {volist name="brand" id="v2"}
        {if condition="$v.brand_id == $v2.id "}
        <td>{$v2.bname}</td>
        {/if}
        {/volist}
        <td>{$v.good_name}</td>
        <td>{$v.last}</td>
        <td>{$v.top}</td>
    </tr>
    {/volist}
    </tbody>
</table>
{$data->render()}
</body>
</html>